$(function () {
    setFootData()
})
function setFootData() {
    $.getJSON("http://localhost:8080/topfoot",{},function (data) {
        let html = ''
        $.each( data ,function (i ,info) {
            html +='<a onclick="window.location.href= \''+info.href+'\'">'+info.title+'</a>'
        })
        $('#foot_nav').html(html)
    })
}